package externaldata.passageTrainTheorique;

import java.util.Date;
import java.util.List;

public class ThreadPTTGare implements Runnable {
	
	private List<PassageTrainTheorique> listeCompletePTT;
	private String filtreGare;
	private Date dateAVerifier;
	

	public ThreadPTTGare(List<PassageTrainTheorique> listeCompletePTT, String filtreGare, Date dateAVerifier) {
		this.listeCompletePTT = listeCompletePTT;
		this.filtreGare = filtreGare;
		this.dateAVerifier = dateAVerifier;
	}
	
	
	@Override
	public void run() {
		listeCompletePTT.addAll(PassageTrainTheoriqueHelper.getPassagesParDate(filtreGare, dateAVerifier));
	}

}
